import axios from 'axios';

let base = 'product';


/**
 *  产品列表
 * Added by XWang 2018-06-20
 * */
export const productList = params => {
    return axios.post(`${base}/list`, params);
};



/**
 *  产品增加
 * Added by XWang 2018-06-20
 * */
export const productAdd = params => {
    return axios.post(`${base}/add`, params);
};


/**
 *  产品禁用
 * Added by XWang 2018-06-20
 * */
export const productDisable = params => {
    return axios.post(`${base}/disable`, params);
};


/**
 *  产品启用
 * Added by XWang 2018-06-20
 * */
export const productEnable = params => {
    return axios.post(`${base}/enable`, params);
};


/**
 *  产品更新
 * Added by XWang 2018-06-20
 * */
export const productUpdate = params => {
    return axios.post(`${base}/update`, params);
};

/**
 *  产品详情
 * Added by XWang 2018-06-20
 * */
export const productInfo = params => {
    return axios.post(`${base}/info`, params);
};